<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body></body>
</html>

<script>
  function robot(row, col) {
    if (row == 1 && col == 1) {
      return 1;
    }
    if (row < 1 || col < 1) {
      return 0;
    }
    return robot(row - 1, col) + robot(row, col - 1);
  }
  console.log(robot(3, 4));
</script>
